<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script src="js/jquery-1.10.1.js" type="text/javascript" charset="utf-8"></script>
		<style type="text/css">
			#data{
			      height: 100px;
			      background: grey;
			      color: white;
			      text-align: center;
			}
		</style>
	</head>
	<body>
		<form>
			<label for="uname">用户名：</label><input type="text" name="uname" id="uname" value=""/>
			<br />
			<label for="pws">密码</label><input type="text" name="pws" id="pws" value=""/>
			<br />
			<label for="apws">再次输入密码：</label><input type="text" name="apws" id="apws" value=""/>
			<br />
			<button id="btn" type="submit">点击</button>
			<br />
			<br />
		</form>
		<div id="data">
		</div>
	</body>
	<script type="text/javascript">
		$("form").submit(function  (e) {
			e.preventDefault();
			var datas = $(this).serialize();
			console.log(datas)
			$("#data").text(datas)
			
			
		})
		
		
	</script>
</html>
